package com.uusee.shipshape.bk.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.Proxy;

@Entity
@Table(name = "ss_bk_image")
@Proxy(lazy = false)
@SequenceGenerator(name = "baike_image_sq", sequenceName = "ss_bk_image_sq", allocationSize = 1)
public class BaikeImage {
	// --=====成员变量=====--

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "baike_image_sq")
	private long id;
	@ManyToOne
	@JoinColumn(name = "BAIKE_ID")
	private Baike baike;
	private String name = "";	
	private String category = "";
	private String measure;
	private Integer width;
	private Integer height;
	@Column(name = "IMAGE_SIZE")
	private String size;
	@Column(name = "ORI_IMAGE_URI")
	private String oriImageUri;
	private String status;
	@Column(name = "create_user")
	private String createUser;
	@Column(name = "create_date")
	private Date createDate;
	@Column(name = "update_user")
	private String updateUser;
	@Column(name = "update_date")
	private Date updateDate;
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public Baike getBaike() {
		return baike;
	}
	public void setBaike(Baike baike) {
		this.baike = baike;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getMeasure() {
		return measure;
	}
	public void setMeasure(String measure) {
		this.measure = measure;
	}
	public Integer getWidth() {
		return width;
	}
	public void setWidth(Integer width) {
		this.width = width;
	}
	public Integer getHeight() {
		return height;
	}
	public void setHeight(Integer height) {
		this.height = height;
	}
	public String getSize() {
		return size;
	}
	public void setSize(String size) {
		this.size = size;
	}
	public String getOriImageUri() {
		return oriImageUri;
	}
	public void setOriImageUri(String oriImageUri) {
		this.oriImageUri = oriImageUri;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
}
